package com.zxf.android.mobilesafe.db.dao;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Environment;

public class DBClearDao {
	
	public String[] find(String packName) {
		String[] fileInfos = null;
		SQLiteDatabase db = SQLiteDatabase.openDatabase(Environment.getExternalStorageDirectory() + "/clearpath.db", null, SQLiteDatabase.OPEN_READWRITE);
		Cursor cursor = db.rawQuery("select softChinesename,filepath from softdetail where apkname=?", new String[]{packName});
		while(cursor.moveToNext()) {
			fileInfos =new String[]{cursor.getString(0),String.valueOf(cursor.getInt(1))};
		}
		cursor.close();
		db.close();
		return fileInfos;
	}
}
